﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
<table>
    <tr>
        <th>尿蛋白（PRO）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.PRO < Model.labCheckStd.PROmin))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.PRO)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.PRO > Model.labCheckStd.PROmax))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.PRO)↑</td>
            }else
            {
                <td> @Html.MarkDisplayFor(model => model.labCheck.PRO)</td>
            }
        }
    </tr>
    <tr>
        <th>尿糖（GLU）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.GLU < Model.labCheckStd.GLUmin))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.GLU)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.GLU > Model.labCheckStd.GLUmax))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.GLU)↑</td>
            }else
            {
                <td> @Html.MarkDisplayFor(model => model.labCheck.GLU)</td>
            }
        }
    </tr>
    <tr>
        <th>尿白细胞（LEU）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.LEU < Model.labCheckStd.LEUmin))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.LEU)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.LEU > Model.labCheckStd.LEUmax))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.LEU)↑</td>
            }else
            {
                <td> @Html.MarkDisplayFor(model => model.labCheck.LEU)</td>
            }
        }
        @*<td>
            @Html.DisplayFor(model => model.LEU1)或
            @Html.DisplayFor(model => model.LEU2)个/HP
        </td>*@
    </tr>
    <tr>
        <th>尿红细胞（BLD）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.BLD < Model.labCheckStd.BLDmin))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.BLD)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.BLD > Model.labCheckStd.BLDmax))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.BLD)↑</td>
            }else
            {
                <td> @Html.MarkDisplayFor(model => model.labCheck.BLD)</td>
            }
        }
        @*<td>
            @Html.DisplayFor(model => model.BLD1, "UrineTest")或
            @Html.DisplayFor(model => model.BLD2)个/HP
        </td>*@
    </tr>
</table>